Do not delete the input template for STATA. It is needed for the STATA program to automatically produce the matlab input in the correct format.